package org.itboys.baseobject.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * 树形的 key values config
 * @author 伟哥
 *
 */
@Entity(value = "KeyValuesTreeConfig", noClassnameStored = true)
public class KeyValuesTreeConfig extends BaseLongIdEntity{

	private static final long serialVersionUID = -729329653431981485L;
	@Indexed
	private String key;
	private String value;// 值
	private String desc;// 描述
	private int order;//排序字段 越小排越前面
	private long parentId = 0L;//关联的父配置项ID
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
	public long getParentId() {
		return parentId;
	}
	public void setParentId(long parentId) {
		this.parentId = parentId;
	}
}
